package com.sc.nft.controller.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class ExchangeRequest extends IdRequest {


    @ApiModelProperty("兑换数量")
    @NotNull(message = "兑换数量不能为空")
    @Range(min = 1, max = 20, message = "兑换数量范围为1-20")
    private Integer num;

    @ApiModelProperty(value = "支付密码")
    @NotBlank(message = "支付密码不能为空")
    private String paymentPassword;

}
